package com.cstz.ydshop.common.utils;

import java.util.Date;
import java.util.UUID;

public class TokenUtil {

	public static String getToken(){
		return UUID.randomUUID().toString();
	}
	
	public static void main(String[] args) {
		Date date = new Date(1533113198334l);
		System.out.println(date);
		
		String code = "123456789";
		System.out.println(code.substring(code.length()-6));
	}
}
